﻿
using System.Data.Linq;
using System.Data.Linq.Mapping;
using Microsoft.Phone.Data.Linq;
using Microsoft.Phone.Data.Linq.Mapping;

namespace LuyenThiVer03.UserData
{
    public class UserDatabase : DataContext
    {
        public UserDatabase(string connectionString)
            : base(connectionString)
        {
        }

        public Table<DeThi> DeThiTable
        {
            get
            {
                return GetTable<DeThi>();
            }
        }

        public Table<CauHoi> CauHoiTable
        {
            get
            {
                return GetTable<CauHoi>();
            }
        }

        public Table<DapAn> DapAnTable
        {
            get
            {
                return GetTable<DapAn>();
            }
        }  
  
        public Table<DeThiCauHoi> DeThiCauHoiTable
        {
            get { return GetTable<DeThiCauHoi>(); }
        } 
    }
}
